package com.nc.delivery_project.shared.servicelocator;

import com.google.web.bindery.requestfactory.shared.ServiceLocator;
import com.nc.delivery_project.server.service.CurrencyService;

/**
 * Created by miroshnik on 1/28/2015.
 */
public class CurrencyServiceLocator implements ServiceLocator {
    @Override
    public Object getInstance(Class<?> clazz) {
        return ServiceInstanceHolder.SERVICE_INSTANCE;
    }

    private static class ServiceInstanceHolder {
        private static final CurrencyService SERVICE_INSTANCE = new CurrencyService();
    }
}
